<div class="territories form">
<?php echo $this->Form->create('Territory');?>
	<fieldset>
 		<legend><?php __('Add Territory'); ?></legend>
	<?php
		echo $this->Form->input('territory_name');
		echo $this->Form->input('territory_type',array('empty' => 'Select'));
		
		$options = array('url' => 'update_select','update' => 'TerritoryParentTerritoryId');		
		echo $ajax->observeField('TerritoryTerritoryType', $options);
		
		echo $this->Form->input('parent_territory_id',array('empty' => 'Select'));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('List Territories', true), array('action' => 'index'));?></li>
		<li><?php echo $this->Html->link(__('List Territories', true), array('controller' => 'territories', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Parent Territory', true), array('controller' => 'territories', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Lookup Values', true), array('controller' => 'lookup_values', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Territory Type', true), array('controller' => 'lookup_values', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Addresses', true), array('controller' => 'addresses', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Province Address', true), array('controller' => 'addresses', 'action' => 'add')); ?> </li>
	</ul>
</div>